package com.team9.service.impl;

import com.team9.mapper.EmployeeMapper;
import com.team9.po.Employee;
import com.team9.po.EmployeeExample;
import com.team9.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 员工业务实现层
 *
 * @author YoungKai
 * @date 2021/1/7 15:49
 */
@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Resource
    private EmployeeMapper employeeMapper;

    @Override
    public List<Employee> findAll() {
        EmployeeExample employeeExample = new EmployeeExample();
        return employeeMapper.selectByExample(employeeExample);

    }
}
